﻿

public class Request_AddMoment : RequestBase
{

    public const string Key = "AddMoment";

    public AddMomentRequestData addMomentReqData = new AddMomentRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return addMomentReqData;
        }
    }

    public Request_AddMoment() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"{addMomentReqData.userId} Add Moment：{addMomentReqData.content}");
    }

    public override ResponseData NewResponseData() => new AddMomentResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_AddMoment();
    //}
}
//public class Response_AddMoment : ResponseBase
//{

//    public override ResponseData NewResponseData() => new AddMomentResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_Visit -> Excuate");

//        (this.request as Request_AddMoment).onResponse?.Invoke(this);
//    }
//}
